package com.JavaBasic;

import java.awt.Frame;
import java.io.IOException;

public class RunTimeDemo {
	public static void main(String[] args) throws IOException {
		Runtime runtime = Runtime.getRuntime();
//		runtime.exec("sudo shutdown -h +10");
		
		// 获取当前系统类型
		String systemName = System.getProperties().getProperty("os.name");
		System.out.println(systemName);
	}
}
